package com.tang.book.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 图书表
 * @TableName book
 */
@TableName(value ="book")
@Data
public class Book implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 书籍名字
     */
    @TableField(value = "bookName")
    private String bookName;

    /**
     * 借阅时间
     */
    @TableField(value = "shelfTime")
    private Date shelfTime;

    /**
     * 归还时间
     */
    @TableField(value = "isBorrowed")
    private Integer isBorrowed;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(value = "isDeleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}